package com.tom.demo.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.tom.demo.common.entity.SysUser;
import com.tom.demo.common.entity.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Admin
* @description 针对表【sys_user_role(用户和角色关联关系表)】的数据库操作Mapper
* @createDate 2025-03-01 21:34:07
* @Entity com.tom.demo.common.entity.SysUserRole
*/
@Mapper
@DS("master")
public interface SysUserRoleMapper {


    int insert(SysUserRole record);


    int deleteByRoleId(@Param("roleId") String roleId);

    List<String> selectByUserId(@Param("userId") String userId);

    void deleteByUserId(@Param("userId") String userId);

}
